package com.htn.system.api.model;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

public class LoginUserDTO implements Serializable {

    //用户ID
    private String id;
    //用户姓名
    private String name;
    //用户手机
    private String username;
    //用户类型
    private String type;
    //用户密码
    private String password;

    @ApiModelProperty(value = "角色id")
    private String roleId;
/*
    public Collection<? extends GrantedAuthority> getAuthorities() {
        return authorities;
    }

    public void setAuthorities(Collection<? extends GrantedAuthority> authorities) {
        this.authorities = authorities;
    }*/

    private Boolean enabled;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }


    /*

    private Collection<? extends GrantedAuthority> authorities;


    public List<SimpleGrantedAuthority> getAuthoritiesRoles() {
        List<SimpleGrantedAuthority> authorities = new ArrayList<>();
        authorities.add(new SimpleGrantedAuthority(SecurityConstants.ROLE_CLAIMS + roleId));
        return authorities;
    }*/
}
